<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <!-- 第一步移动端的视口 -->
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- 第二步引入我们的mui css mui js  -->
    <link rel="stylesheet" href="./assets/mui/css/mui.css">

    <!-- 引入图标字体css -->
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
    <script src="./assets/mui/js/mui.js"></script>
    <script src='./assets/zepto/zepto.min.js'> </script>


    <!-- 引入我们公共js -->
    <script src="./js/base.js"></script>

    <!-- 我们自己的样式 -->
    <link rel="stylesheet" href="./css/mybase.css">
    <link rel="stylesheet" href="./css/detail1.css">
    <script src="./js/detail1.js"></script>
    <script src="./assets/artTemplate/template-web.js"></script>

</head>

<body>
    <!-- 主页面标题 -->
    <header class="mui-bar mui-bar-nav header">
        <a class="mui-icon mui-icon-arrowleft  mui-pull-left"></a>
        <h1 class="mui-title">我的商品详情</h1>
    </header>

    <nav class="mui-bar mui-bar-tab footer">
        <a class="mui-tab-item mui-active" href="index.html">
            <span class="mui-icon mui-icon-home"></span>
            <span class="mui-tab-label">首页</span>
        </a>
        <a class="mui-tab-item" href="category.html">
            <span class="mui-icon mui-icon-bars"></span>
            <span class="mui-tab-label">分类</span>
        </a>
        <a class="mui-tab-item" href="cart.html">
            <span class="mui-icon  fa  fa-shopping-cart"></span>
            <span class="mui-tab-label">购物车</span>
        </a>
        <a class="mui-tab-item" href="user.html">
            <span class="mui-icon mui-icon-person"></span>
            <span class="mui-tab-label">会员中心</span>
        </a>
    </nav>

    <div class="mydetail" id='myDetail'>
        <!-- 轮播图 -->
        
    </div>



    <script type='text/html' id='detailTmp'>
        <!-- 轮播图 -->
        <div class="mui-slider">
                <div class="mui-slider-group mui-slider-loop">
                    {{each pic item i}}
                    <div class="mui-slider-item">
                        <a href="#">
                            <img src="{{item.picAddr}}" />
                        </a>
                    </div>
                    {{/each}}
                </div>
            </div>
            <!-- 轮播图 -->
    
            <!-- 商品详情标题 -->
            <div class="detail-title">
                {{proName}}
            </div>
            <!-- 商品详情标题 -->
    
            <!-- 商品详情价格 -->
            <div class="detail-price">
                <span>价格:</span>
                <span>{{price}}</span>
                <span>{{oldPrice}}</span>
            </div>
            <!-- 商品详情价格 -->
    
            <!-- 商品尺码 -->
            <div class="detail-size mui-clearfix">
                <div>尺码:</div>
                {{each size items i}}
                <span>{{items}}</span>
                {{/each}}
            </div>
            <!-- 商品尺码 -->
    
            <!-- 商品数量 -->
            <div class="detail-num mui-clearfix">
                <p>数量:</p>
                <span id='reduce'>-</span>
                <input type="text" value='1' id='productNum'>
                <span id='add'>+</span>
                <p>剩余:{{num}}件</p>
            </div>
            <!-- 商品数量 -->
    
            <!-- 商品详情提交 -->
            <div class="detail-btn">
                    <button type="button"  class="mui-btn mui-btn-primary">查看购物车</button>
                    <button type="button"  class="mui-btn mui-btn-red" id='addCar'>加入购物车</button>
            </div>
            <!-- 商品详情提交 -->
        


        
    </script>
</body>

</html>